package com.cloudpolice.door.feignInterface;

import com.cloudpolice.door.feignInterface.hystric.PicAndAiPicInterFaceHystric;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lh.model.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 *
 * @author liaoyueli
 * @date 2020-04-21
 */
@Repository
@FeignClient(value = "aipic-aggregate/picAndAiPicController", fallback = PicAndAiPicInterFaceHystric.class)
public interface PicAndAiPicInterFace {

    /**
     * 通用查询头像关系，方法ID：SE2020041510421372333AABCB8F0B5
     *
     * @param id 表vou_myPicAndAiPic,字段名id:我们的PicId
     * @param aiPicId 表vou_myPicAndAiPic,字段名aiPicId:AI的PicId
     * @param aiAfterType 表vou_myPicAndAiPic,字段名aiAfterType:AI算法名称
     * @return 结果集
     */
    @ApiOperation(value = "通用查询头像关系,方法ID：SE2020041510421372333AABCB8F0B5", notes = "结果集")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "我们的PicId", dataType = "String"),
            @ApiImplicitParam(name = "aiPicId", value = "AI的PicId", dataType = "String"),
            @ApiImplicitParam(name = "aiAfterType", value = "AI算法名称", dataType = "String")
    })
    @PostMapping("/getPicAndAiPic")
    ResultVO getPicAndAiPic(@RequestParam(value = "id", required = false) String id
            , @RequestParam(value = "aiPicId", required = false) String aiPicId
            , @RequestParam(value = "aiAfterType", required = false) String aiAfterType);
}
